home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000148_icon-group-sender _Wed Jul 7 08:11:58 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA00817
  4.     for icon-group-addresses; Wed, 7 Jul 1999 08:11:48 -0700 (MST)
  5. Message-Id: <199907071511.IAA00817@baskerville.CS.Arizona.EDU>
  6. From: Tim Patti <timp@clarityconnect.com>
  7. To: icon-group@optima.CS.Arizona.EDU
  8. Subject: Dynamic function loading on Linux
  9. Date: Mon, 5 Jul 1999 12:21:33 -0500
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12.  
  13.     I'm looking for a simple solution to using dynamic loading on Linux.
  14. In order to get the test program in icon/tests/calling/loadfunc to work, I've
  15. got to remove or rename icon/src/h/features.h.
  16.  
  17. What seems to be happening is -
  18.  
  19. 1.  bitcount.c includes rt.h
  20. 2.  icon/src/h/rt.h gets included, which includes
  21. 3.  icon/src/h/sys.h which includes
  22. 4.  /usr/local/ctype.h which wants to include /usr/local/features.h
  23. 5.  because ISRCH in the Makefile points to icon/src/h/ the
  24.      icon/src/h/features.h file gets included instead, breaking the
  25.      compile.
  26.  
  27.     I created a icon/src/h/dynamic_linux  directory that  dosen't have 
  28. features.h in it that I can point ISRCH to in the Makefile but, I have to
  29. edit a lot of the header files.  
  30.  
  31. The includes in h/rt.h are written as  #include "../h/define.h",
  32. which I changed to  #include "define.h" in order to make it  work
  33. in a different directory.  Is there an easier way of dealing with this ?
  34.  
  35.     Tim 
  36.  
  37.